package httptoken

func lazyDecrypt(data, key []byte) ([]byte, error) {
	keyLen := len(key)
	for index, value := range data {
		data[index] = value - 0xFF&key[index%keyLen]
	}
	return data, nil

}

func lazyEncrypt(data, key []byte) ([]byte, error) {
	keyLen := len(key)
	for index, value := range data {
		data[index] = value + 0xFF&key[index%keyLen]
	}
	return data, nil

}
